package entity

type FirmwaresTactic struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	FirmwareId int64 `gorm:"column:firmware_id;type:BIGINT" json:"firmware_id"`

	ReleaseTime int64 `gorm:"column:release_time;type:BIGINT" json:"release_time"`

	ReleaseType int `gorm:"column:release_type;type:TINYINT" json:"release_type"`

	UpgradeType int `gorm:"column:upgrade_type;type:TINYINT" json:"upgrade_type"`

	ExecRange int `gorm:"column:exec_range;type:TINYINT" json:"exec_range"`

	Status int `gorm:"column:status;type:TINYINT" json:"status"`

	Desc string `gorm:"column:desc;type:VARCHAR(255)" json:"desc"`

	Count int `gorm:"column:count;type:INT" json:"count"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *FirmwaresTactic) TableName() string {
	return "firmwares_tactics"
}
